<!DOCTYPE web-app PUBLIC
 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
 "http://java.sun.com/dtd/web-app_2_3.dtd" >

<web-app>
    <display-name>showcase</display-name>
    <servlet>
        <servlet-name>redoraOperations</servlet-name>
        <servlet-class>${doc.all.package}.service.http.RedoraServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>redoraConfigurationOperations</servlet-name>
        <servlet-class>redora.configuration.rdo.service.http.RedoraConfigurationServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>redoraConfigurationFindOperations</servlet-name>
        <servlet-class>redora.configuration.rdo.service.http.RedoraConfigurationServlet</servlet-class>
    </servlet>
    <#list doc["/all/object"] as model>
    <servlet>
        <servlet-name>${model.@name?uncap_first}Operations</servlet-name>
        <servlet-class>${doc.all.package}.service.http.${model.@name}Servlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>${model.@name?uncap_first}FindOperations</servlet-name>
        <servlet-class>${doc.all.package}.service.http.${model.@name}Servlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>${model.@name?uncap_first}PersistOperations</servlet-name>
        <servlet-class>${doc.all.package}.service.http.${model.@name}Servlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>${model.@name?uncap_first}DeleteOperations</servlet-name>
        <servlet-class>${doc.all.package}.service.http.${model.@name}Servlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>${model.@name?uncap_first}TrashOperations</servlet-name>
        <servlet-class>${doc.all.package}.service.http.${model.@name}Servlet</servlet-class>
    </servlet>
    </#list>
    <servlet-mapping>
        <servlet-name>redoraOperations</servlet-name>
        <url-pattern>/redoraOperations.do</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>redoraConfigurationOperations</servlet-name>
        <url-pattern>/redoraconfigurationOperations.do</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>redoraConfigurationOperations</servlet-name>
        <url-pattern>/rdo/find/redoraconfiguration</url-pattern>
    </servlet-mapping>
    <#list doc["/all/object"] as model>
    <servlet-mapping>
        <servlet-name>${model.@name?uncap_first}Operations</servlet-name>
        <url-pattern>/${model.@name?lower_case}Operations.do</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>${model.@name?uncap_first}FindOperations</servlet-name>
        <url-pattern>/rdo/find/${model.@name?lower_case}</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>${model.@name?uncap_first}PersistOperations</servlet-name>
        <url-pattern>/rdo/persist/${model.@name?lower_case}</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>${model.@name?uncap_first}DeleteOperations</servlet-name>
        <url-pattern>/rdo/delete/${model.@name?lower_case}</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>${model.@name?uncap_first}TrashOperations</servlet-name>
        <url-pattern>/rdo/trash/${model.@name?lower_case}</url-pattern>
    </servlet-mapping>
    </#list>

    <filter>
        <filter-name>Set Character Encoding</filter-name>
        <filter-class>redora.util.SetCharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>utf8</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>Set Character Encoding</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
</web-app>
